<template>
    <div>
        <el-dialog :visible.sync="dialogVisible" width="80%" :before-close="handleClose">
            <iframe id='mainFrame' name='mainFrame' ref='mainFrame' :src="iframeUrl" target="_blank" height='1000px'
                frameborder="0" width="100%"></iframe>
        </el-dialog>
    </div>
</template>
<script>
export default {
    name: 'taxlog',
    data() {
        return {
            dialogVisible: false,
            iframeUrl: 'https://manage.shengdaiqifu.com/admin-web/#/'
        }
    },
    methods: {
        handleClose() {
            this.dialogVisible = false
        },
        open() {
            this.dialogVisible = true

            this.$nextTick(() => {
                let iframe = document.getElementById('mainFrame');
                console.log(iframe.contentWindow, 'll');
            })


        }
    }
}
</script>
